-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Sui Sign Error] When i use sui sign transaction, i got null information #3843
Comments
Hi @weixuefeng, the problem should be with the Protobuf message you try to pass to the |
yes. before i merge tw_sui code, it works good. AnySigner.sign also works for another chain, they are worked. |
Could you please send me the encoded signing input without private key, I'll check what can be the problem. |
Log.d("sui: ${suiCoinInfo.toJson()}");
var fee = await calculateFee(targetAddress, signerAddress, amount);
var objectId =
calculateObject((BigInt.parse(amount) + fee).toString(), suiCoinInfo);
Log.d("target: $targetAddress, signerAddress: $signerAddress, amount: $amount, object: ${objectId!.toPrettyString()}, fee: ${fee.toString()}");
var txBytes = await unSafePaySui(
targetAddress, signerAddress, amount, objectId!, fee.toString());
Log.d("txbytes: $txBytes");
Sui.SigningInput input = Sui.SigningInput(
privateKey: privateKeyHex.toUint8List(),
signDirectMessage: Sui.SignDirect(unsignedTxMsg: txBytes));
Sui.SigningOutput output = Sui.SigningOutput.fromBuffer(
AnySigner.sign(input.writeToBuffer(), TWCoinType.TWCoinTypeSui)
.toList());
Log.d(output.toDebugString()); log:
|
Sorry, I meant |
@weixuefeng, have you run |
yes. i had run the |
yes. if you have txBytes. you can got |
Hi @weixuefeng, did you have a chance to check |
|
Thanks @weixuefeng, as I thought, this SigningInput was generated using the legacy Protobuf API.
We've updated indexes slightly: Could you please try to clean the cache of the Android app, or even compile the entire object from scratch? |
got it!. thanks for your reply @satoshiotomakan |
i use wallet core sign txBytes. i got empty. not unSignedTx, no signature, no debugString !
i got txBytes:
AAACAAgA4fUFAAAAAAAgDPEBaSJaJRETsxmNyB0VunIob3M1OoIS8DutEL0PCpkCAgABAQAAAQEDAAAAAAEBAIdFNNZpoeEtRVLQEfYM0lx46xschKfJ5EnfmtpnCHNFAQDUBmObgpOd26p42IT8ABXrYTxYmCTgdv/w2WaDAhhJwB7zBQAAAAAg/M0At5v4FrSuDsud8gentX4EIzGADgYCipczvtYS17qHRTTWaaHhLUVS0BH2DNJceOsbHISnyeRJ35raZwhzRe8CAAAAAAAACLEiAAAAAAAA
and call
then i got empty:
The text was updated successfully, but these errors were encountered: