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