-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
now i call the function
but i dont know how to calculate uint8[] vs, bytes32[] rs, bytes32[] ss
can you give me an example ?
thanks~~
// @destination: the ether receiver address. // @value: the ether value, in wei. // @vs, rs, ss: the signatures function spend(address destination, uint256 value, uint8[] vs, bytes32[] rs, bytes32[] ss) external { require(destination != address(this), "Not allow sending to yourself"); require(address(this).balance >= value && value > 0, "balance or spend value invalid"); require(_validSignature(address(0x0), destination, value, vs, rs, ss), "invalid signatures"); spendNonce = spendNonce + 1; //transfer will throw if fails destination.transfer(value); emit Spent(destination, value); }
Metadata
Metadata
Assignees
Labels
No labels