Skip to content

Commit

Permalink
Use safe transfer for ENS in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 21, 2019
1 parent b304ec1 commit b7494d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src.ts/bin/ethers-ens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b7494d8

Please sign in to comment.