correction: tx -> tx['txid']; also remove duplicate @solana/web3.js package that was causing name collision (#270)
This commit is contained in:
parent
5bd305339b
commit
e2acaae9f2
|
@ -21,7 +21,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@project-serum/anchor": "^0.13.2",
|
||||
"@solana/web3.js": "^1.24.1",
|
||||
"arweave": "^1.10.16",
|
||||
"bn.js": "^5.2.0",
|
||||
"commander": "^8.1.0",
|
||||
|
|
|
@ -389,11 +389,12 @@ program
|
|||
[],
|
||||
'single',
|
||||
);
|
||||
console.info('transaction for arweave payment:', tx);
|
||||
|
||||
// data.append('tags', JSON.stringify(tags));
|
||||
// payment transaction
|
||||
const data = new FormData();
|
||||
data.append('transaction', tx);
|
||||
data.append('transaction', tx['txid']);
|
||||
data.append('env', ENV);
|
||||
data.append('file[]', fs.createReadStream(image), `image.png`);
|
||||
data.append('file[]', manifestBuffer, 'metadata.json');
|
||||
|
|
20
js/yarn.lock
20
js/yarn.lock
|
@ -2211,26 +2211,6 @@
|
|||
superstruct "^0.14.2"
|
||||
tweetnacl "^1.0.0"
|
||||
|
||||
"@solana/web3.js@^1.24.1":
|
||||
version "1.24.1"
|
||||
resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.24.1.tgz#1fb29f344454669183206f452ab3b8792567cade"
|
||||
integrity sha512-XImMWAvjcXteMQwe1FFjoe6u72xmcu+UYobPIxLEMX29XXWVTalyYRKBXvcOXwz6DliTYnFXmncNEwUDEFFHGg==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.12.5"
|
||||
"@solana/buffer-layout" "^3.0.0"
|
||||
bn.js "^5.0.0"
|
||||
borsh "^0.4.0"
|
||||
bs58 "^4.0.1"
|
||||
buffer "6.0.1"
|
||||
crypto-hash "^1.2.2"
|
||||
jayson "^3.4.4"
|
||||
js-sha3 "^0.8.0"
|
||||
node-fetch "^2.6.1"
|
||||
rpc-websockets "^7.4.2"
|
||||
secp256k1 "^4.0.2"
|
||||
superstruct "^0.14.2"
|
||||
tweetnacl "^1.0.0"
|
||||
|
||||
"@testing-library/dom@*", "@testing-library/dom@^7.28.1":
|
||||
version "7.31.0"
|
||||
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-7.31.0.tgz#938451abd3ca27e1b69bb395d4a40759fd7f5b3b"
|
||||
|
|
Loading…
Reference in New Issue