You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running this test script for the first time, the wallet authorization fails and the wallet cannot be used again in the test environment. This issue only occurs on the dev network (dev.xmtp.network).
import'package:flutter_test/flutter_test.dart';
import'package:web3dart/web3dart.dart';
import'package:example/session/foreground_session.dart';
import'package:xmtp/xmtp.dart'as xmtp;
voidmain() {
test('Test wallet authorization', () async {
var wallet =EthPrivateKey.fromHex('key').asSigner();
print('Wallet address: ${awaitwallet.address}');
var api = xmtp.Api.create(host:'dev.xmtp.network', isSecure:true);
var client =await xmtp.Client.createFromWallet(api, wallet);
});
}
Interestingly, if the wallet is first used in another application, then it works fine in the test script and continues to work without any issues. Also interestingly, only happens in the dev network.
Steps to reproduce:
Create a wallet in metamask and export key
Run the test script on the dev network for the first time.
Observe that the script runs well.
Try to use the wallet now indev.xmtp.chat
Additional notes
The same flow was tested in the Javascript SDK and it worked normally.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running this test script for the first time, the wallet authorization fails and the wallet cannot be used again in the test environment. This issue only occurs on the dev network (
dev.xmtp.network
).Interestingly, if the wallet is first used in another application, then it works fine in the test script and continues to work without any issues. Also interestingly, only happens in the
dev
network.Steps to reproduce:
dev.xmtp.chat
Additional notes
The same flow was tested in the Javascript SDK and it worked normally.
The text was updated successfully, but these errors were encountered: