Update @solana/web3.js to v0.41.2

This commit is contained in:
Justin Starry 2020-04-06 01:22:25 +08:00 committed by Michael Vines
parent ed470564e6
commit b691f7a77b
3 changed files with 7 additions and 7 deletions

View File

@ -1269,9 +1269,9 @@
"integrity": "sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw==" "integrity": "sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw=="
}, },
"@solana/web3.js": { "@solana/web3.js": {
"version": "0.40.0", "version": "0.41.2",
"resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.40.0.tgz", "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.41.2.tgz",
"integrity": "sha512-dNNSPU2igrjPIipGejoOOsCqHLvr6EmS4DyAkn4qh42pNkx75FBJsxvJprxyhOXqNg7ZDzH2vVw38Z8WRJSDdQ==", "integrity": "sha512-KHHnKNJLkleSFc8kj+SvhlchlBScQHUEoD/M8idzhL067sqa/EsPMnrcXMKwp8Ro4t2QiyFMmmqkVaZbTMhEWQ==",
"requires": { "requires": {
"@babel/runtime": "^7.3.1", "@babel/runtime": "^7.3.1",
"bn.js": "^5.0.0", "bn.js": "^5.0.0",

View File

@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@solana/web3.js": "^0.40.0", "@solana/web3.js": "^0.41.2",
"@testing-library/jest-dom": "^4.2.4", "@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2", "@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2", "@testing-library/user-event": "^7.1.2",

View File

@ -263,10 +263,10 @@ export async function checkTransactionStatus(
confirmations = "max"; confirmations = "max";
} }
if ("Ok" in value.status) { if (value.err) {
status = Status.Success;
} else {
status = Status.Failure; status = Status.Failure;
} else {
status = Status.Success;
} }
} }
} catch (error) { } catch (error) {