Skip to content

Commit d470633

Browse files
authored
Merge pull request #315 from dongsheng2021/pr001
await is required for contract call
2 parents 18468c2 + 5bd278e commit d470633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basic/03-web3js-erc20/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Trans = async () => {
100100
transferTransaction.rawTransaction
101101
);
102102

103-
erc20Contract.methods
103+
await erc20Contract.methods
104104
.balanceOf(receiver)
105105
.call()
106106
.then((result) => {

0 commit comments

Comments
 (0)