#SorobanClient.xdr.HashPreImageSorobanAuthorization

1 messages · Page 1 of 1 (latest)

round maple
#

Has anyone been able to get this to work?

 const networkId = SorobanClient.hash(Buffer.from(networkPassphrase));
  const nonce = new SorobanClient.xdr.Uint64(1);
 
  const envelope = new SorobanClient.xdr.HashIdPreimageSorobanAuthorization({
    networkId,
    invocation,
    nonce: nonce,
    signatureExpirationLedger: ledgerValidityCount,
  });

Error is: XdrWriterError [TypeError]: XDR Write Error: 1 is not a Hyper

round maple
#

Sorry, NodeJS w/soroban-client 0.9.2, Preview 10

round maple
#

This helped a little:

#

const nonce = new SorobanClient.xdr.Int64(1);

#

Nonce is an Int64 for this call, generally a Uint64?