estimateChangeOwnerSigned method
Implementation
Future<BigInt> estimateChangeOwnerSigned(
String identityDid, String newDid, MsgSignature signature) {
var changeOwnerSignedFunction =
_erc1056contract.function('changeOwnerSigned');
var tx = Transaction.callContract(
contract: _erc1056contract,
function: changeOwnerSignedFunction,
parameters: [
_didToAddress(identityDid),
BigInt.from(signature.v),
unsignedIntToBytes(signature.r),
unsignedIntToBytes(signature.s),
_didToAddress(newDid),
],
// maxGas: 76853
);
return web3Client.estimateGas(
sender: _didToAddress(identityDid), data: tx.data, to: contractAddress);
}