Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Conversation

@adam-maj
Copy link
Contributor

  • so we dont have await which blocks our server
  • and provide our own tx opts

* so we dont have await which blocks our server
* and provide our own tx opts
// tx, err := contract.Signature.Mint(context.Background(), signedPayload)
func (signature *ERC721SignatureMinting) Mint(ctx context.Context, signedPayload *SignedPayload721) (*types.Transaction, error) {
message, err := signature.mapPayloadToContractStruct(ctx, signedPayload.Payload)
func (signature *ERC721SignatureMinting) MintAndAwait(ctx context.Context, signedPayload *SignedPayload721) (*types.Transaction, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to rename this here? If possible, would probably be best to keep the Mint API here available just so it isn't a breaking change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as a sdk.. we should be really explicit and obvious when we are doing loop/poll .. hence the suffix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sent another pr then: #118

ricebin and others added 2 commits March 23, 2023 19:16
* add MintWithOptions
* so we dont have await which blocks our server
* and provide our own tx opts

* fix build

* deprecate

---------

Co-authored-by: Adam Majmudar <64697628+adam-maj@users.noreply.github.com>
@adam-maj adam-maj merged commit 37716e2 into main Mar 24, 2023
@adam-maj adam-maj deleted the am/mint branch March 24, 2023 05:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants