Skip to content

Commit

Permalink
fix: contract deployment fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbeng committed Sep 22, 2023
1 parent 6b5bfeb commit d770313
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/web3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/web3.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
&& payload.params[0].to.toLowerCase() === utils.aspectCoreAddr.toLowerCase()
&& payload.params[0].data
&& payload.params[0].data.substring(0, 10).toLowerCase() === '0xbf132f15',
isAspectCall = (!!payload.params[0] && typeof payload.params[0] === 'object')
isAspectCall = (!!payload.params[0] && typeof payload.params[0] === 'object') && !isContractDeployment
&& payload.params[0].to.toLowerCase() === utils.aspectCoreAddr.toLowerCase()
&& payload.params[0].data
&& payload.params[0].data.substring(0, 10).toLowerCase() === '0x995a75e8',
Expand Down Expand Up @@ -368,7 +368,8 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
&& parsedTx.to.toLowerCase() === utils.aspectCoreAddr.toLowerCase()
&& parsedTx.data
&& parsedTx.data.substring(0, 10).toLowerCase() === '0xbf132f15';
isAspectCall = parsedTx.to.toLowerCase() === utils.aspectCoreAddr.toLowerCase()
isAspectCall = !isContractDeployment
&& parsedTx.to.toLowerCase() === utils.aspectCoreAddr.toLowerCase()
&& parsedTx.data
&& parsedTx.data.substring(0, 10).toLowerCase() === '0x995a75e8';
}
Expand Down

0 comments on commit d770313

Please sign in to comment.