Skip to content

Commit

Permalink
Update evm_tx_store.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Mar 21, 2024
1 parent a107aa7 commit e79ccd8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/chains/evm/txmgr/evm_tx_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ func DbReceiptToEvmReceipt(receipt *dbReceipt) *evmtypes.Receipt {
// Directly maps to onchain receipt schema.
type rawOnchainReceipt = evmtypes.Receipt

func Transaction(ctx context.Context, store *evmTxStore, readOnly bool, fn func(*evmTxStore) error) (err error) {
opts := &sqlutil.TxOptions{TxOptions: sql.TxOptions{ReadOnly: readOnly}}
return sqlutil.Transact(ctx, store.new, store.q, opts, fn)
}

func (o *evmTxStore) Transaction(ctx context.Context, readOnly bool, fn func(*evmTxStore) error) (err error) {
opts := &sqlutil.TxOptions{TxOptions: sql.TxOptions{ReadOnly: readOnly}}
return sqlutil.Transact(ctx, o.new, o.q, opts, fn)
Expand Down

0 comments on commit e79ccd8

Please sign in to comment.