Skip to content

how can i get rsv #2

@ouyoucode

Description

@ouyoucode

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions