Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docs for Swivel.signOrder #56

Closed
alexanderwende opened this issue Jun 17, 2021 · 0 comments · Fixed by #60
Closed

fix docs for Swivel.signOrder #56

alexanderwende opened this issue Jun 17, 2021 · 0 comments · Fixed by #60
Assignees

Comments

@alexanderwende
Copy link
Contributor

    /**
     * Sign an order using EIP-712.
     *
     * @remarks
     * https://eips.ethereum.org/EIPS/eip-712
     *
     * @param o - order to sign
     * @param i - chain-id for the deployed smart contract
     * @param c - address of a deployed verifying contract
     */
    async signOrder (o: Order): Promise<string> {

        if (!this.chainId || !this.verifyingContract) throw CHAIN_ID_AND_VERIFYING_CONTRACT_REQUIRED;

        return await this.vendor.signOrder(o, this.chainId, this.verifyingContract);
    }

@param i and @param c are copy-paste leftovers from vendor method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant