Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Everscale] i can not broadcast success everscale transaction by walletCore. #3766

Open
weixuefeng opened this issue Apr 2, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@weixuefeng
Copy link
Contributor

my code:

  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',
@weixuefeng weixuefeng added the bug Something isn't working label Apr 2, 2024
@satoshiotomakan
Copy link
Collaborator

Hi @weixuefeng, thank you for opening the issue!
Could you clarify if standard Everscale coins transfer works (encodedContractData is empty)?

@weixuefeng
Copy link
Contributor Author

weixuefeng commented Apr 2, 2024

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!

@satoshiotomakan
Copy link
Collaborator

Hi @weixuefeng, unfortunately, we do not have recourses to make a research on this issue.
I'll put this issue on track as well as #3748

@satoshiotomakan
Copy link
Collaborator

Regarding the following

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants