Skip to content

Commit

Permalink
Set next overrides back to empty after using once
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj committed Mar 13, 2023
1 parent ebcb2de commit 63211f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thirdweb/contract_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func (helper *contractHelper) mergeOverrides(opts *bind.TransactOpts) (*bind.Tra
if err := mergo.Merge(opts, helper.nextOverrides); err != nil {
return nil, err
}

helper.nextOverrides = nil
}

return opts, nil
Expand Down

0 comments on commit 63211f2

Please sign in to comment.