2
0
mirror of synced 2025-02-23 03:28:22 +00:00

Use safe transfer for ENS in CLI.

This commit is contained in:
Richard Moore 2019-08-21 01:47:08 -04:00
parent b304ec1f00
commit b7494d8618
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

View File

@ -42,7 +42,7 @@ const ethControllerAbi = [
const ethRegistrarAbi = [
"function ownerOf(uint256 tokenId) view returns (address)",
"function reclaim(uint256 id, address owner) @500000",
"function transferFrom(address from, address to, uint256 tokenId) @500000"
"function safeTransferFrom(address from, address to, uint256 tokenId) @500000"
];
const resolverAbi = [
@ -785,7 +785,7 @@ class TransferPlugin extends AccountPlugin {
});
let registrar = await this.getEthRegistrar();
await registrar.transferFrom(this.accounts[0].getAddress(), this.new_owner, ethers.utils.id(this.label));
await registrar.safeTransferFrom(this.accounts[0].getAddress(), this.new_owner, ethers.utils.id(this.label));
}
}
cli.addPlugin("transfer", TransferPlugin);