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
Future<String> signTransaction(String? toAddress, String privateKeyHex,
BigInt amount, String? encodedContractData) async {
var expire =
(DateTime.now().microsecondsSinceEpoch / 1000000 + 300).toInt();
var transfer = Everscale.Transfer(
amount: $fixnum.Int64(amount.toInt()),
expiredAt: expire,
to: toAddress,
behavior: Everscale.MessageBehavior.SimpleTransfer,
bounce: false,
encodedContractData: encodedContractData);
var signingInput = Everscale.SigningInput(
transfer: transfer, privateKey: privateKeyHex.toUint8List());
var signed = AnySigner.sign(
signingInput.writeToBuffer(), TWCoinType.TWCoinTypeEverscale);
Everscale.SigningOutput output = Everscale.SigningOutput.fromBuffer(signed);
return output.encoded;
}
when i broadcast raw transaction by eversdk, i got error:
message: 'Transaction wait timeout.\n' +
'Possible reason: Contract execution was terminated with error: Contract did not accept message, exit code: 35.\n' +
'Tip: For more information about exit code check the contract source code or ask the contract developer',
The text was updated successfully, but these errors were encountered:
Yes,i set encodedContractData is empty. Because my account state is UNINIT. i use everWallet create A account, and get token from faucet for A. then i transfer ever token to B account. B account is generate by wallet-core. now. B account have everToken. buy i can not transfer it. @satoshiotomakan
other problem. when i make transaction like android test. it broken. because to is null. and it throw invalid address string!
other problem. when i make transaction like android test. it broken. because to is null. and it throw invalid address string!
I think it was done on purpose, but I'm out of the context. See the discussion:
H: I don't see recipient address here, how does transfer work?
R: It was a deployment-only message. Replaced it with a regular transfer, and refactored proto so that it was impossible to create such messages, they are not needed.
my code:
when i broadcast raw transaction by eversdk, i got error:
The text was updated successfully, but these errors were encountered: