Skip to content

Commit efb2ec1

Browse files
committed
use addressToString for all
1 parent 778007d commit efb2ec1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/remix-ide/src/app/tabs/web3-provider.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ export class Web3ProviderModule extends Plugin {
5555
console.log('receipt available but contract address not present', receipt)
5656
return
5757
}
58-
const contractData = await this.call('compilerArtefacts', 'getContractDataFromAddress', receipt.contractAddress)
58+
const contractAddressStr = addressToString(receipt.contractAddress)
59+
const contractData = await this.call('compilerArtefacts', 'getContractDataFromAddress', contractAddressStr)
5960
if (contractData) {
60-
this.call('udapp', 'addInstance', receipt.contractAddress, contractData.contract.abi, contractData.name)
61+
this.call('udapp', 'addInstance', contractAddressStr, contractData.contract.abi, contractData.name)
6162
const data = await this.call('compilerArtefacts', 'getCompilerAbstract', contractData.file)
62-
await this.call('compilerArtefacts', 'addResolvedContract', addressToString(receipt.contractAddress), data)
63+
await this.call('compilerArtefacts', 'addResolvedContract', contractAddressStr, data)
6364
}
6465
}, 50)
6566
}

0 commit comments

Comments
 (0)