Skip to content

Instantly share code, notes, and snippets.

@MariusVanDerWijden
Created July 9, 2020 09:57
Show Gist options
  • Save MariusVanDerWijden/46b80f528db7b5870759a599ebb692c0 to your computer and use it in GitHub Desktop.
Save MariusVanDerWijden/46b80f528db7b5870759a599ebb692c0 to your computer and use it in GitHub Desktop.
type SimulatedBackend struct {
backends.SimulatedBackend
}
func (s *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error {
if err := s.SimulatedBackend.SendTransaction(ctx, tx); err != nil {
return err
}
s.Commit()
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment