1
0
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:
Matthias Kretschmann 2019-11-14 12:17:42 +01:00
parent 6111c33a0c
commit 9f210b3a13
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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)])
}
}