Closed friedger closed 4 years ago
Using the code below in node environment show a serialized transaction, in a react/browser environment it fails with Invalid hex string:
Invalid hex string
const transaction = makeSTXTokenTransfer( "ST1T220B88WSF0ZYNS8V7B33DCZEY23FY7V83GDW", new BigNum(1000), new BigNum(1000), "994d526b3b3409def4d3e481f9c4b3debaf9535cffed0769a7543601e1efa3c501", { nonce: new BigNum(0), version: TransactionVersion.Testnet, chainId: ChainID.Testnet, postConditions: [ makeStandardSTXPostCondition( "ST2P4S7Q4PHGQE9VGG6X8Z54MQQMN1E5047ZHVAF7", FungibleConditionCode.Less, new BigNum(2000) ), ], } ); console.log(transaction.serialize().toString("hex"));
OS: Ubuntu Browser: Firefox
Steps to reproduce error in app:
git clone https://github.com/friedger/speed-spend.git
yarn
yarn start
friedger.id
Steps to reproduce success in node:
git clone https://github.com/friedger/clarity-smart-contracts.git
yarn mocha 'test/integration/transfer.ts'
Fixed by #66
Using the code below in node environment show a serialized transaction, in a react/browser environment it fails with
Invalid hex string
:OS: Ubuntu Browser: Firefox
Steps to reproduce error in app:
git clone https://github.com/friedger/speed-spend.git
yarn
yarn start
friedger.id
and press send.Steps to reproduce success in node:
git clone https://github.com/friedger/clarity-smart-contracts.git
yarn
yarn mocha 'test/integration/transfer.ts'