mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
noZeroX the new owner address
This commit is contained in:
parent
6111c33a0c
commit
9f210b3a13
@ -1,6 +1,6 @@
|
||||
import { TransactionReceipt } from 'web3-core'
|
||||
import ContractBase from './ContractBase'
|
||||
import { zeroX, didPrefixed, didZeroX } from '../../utils'
|
||||
import { zeroX, noZeroX, didPrefixed, didZeroX } from '../../utils'
|
||||
import { InstantiableConfig } from '../../Instantiable.abstract'
|
||||
|
||||
export default class DIDRegistry extends ContractBase {
|
||||
@ -67,6 +67,6 @@ export default class DIDRegistry extends ContractBase {
|
||||
newOwnerAddress: string,
|
||||
ownerAddress: string
|
||||
): Promise<TransactionReceipt> {
|
||||
return this.send('transferDIDOwnership', ownerAddress, [didZeroX(did), newOwnerAddress])
|
||||
return this.send('transferDIDOwnership', ownerAddress, [didZeroX(did), noZeroX(newOwnerAddress)])
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user