Skip to content

Commit

Permalink
chore: formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquemarlon committed Nov 8, 2024
1 parent a696558 commit d5193ad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion address.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ func NewAddressBook() AddressBook {
SafeERC20Transfer: common.HexToAddress("0x817b126F242B5F184Fa685b4f2F91DC99D8115F9"),
SelfHostedApplicationFactory: common.HexToAddress("0x0678FAA399F0193Fb9212BE41590316D275b1392"),
}
}
}
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (e *env) Report(payload []byte) {
}
}

func (e *env) AppAddress() (common.Address) {
func (e *env) AppAddress() common.Address {
return e.appAddress
}

Expand Down
2 changes: 1 addition & 1 deletion etherwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package rollmelette

import (
"fmt"
"github.com/ethereum/go-ethereum/common"
"log/slog"
"math/big"
"slices"
"github.com/ethereum/go-ethereum/common"
)

// EtherDeposit ////////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion examples/honeypotapp/honeypot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ func (s *HoneypotSuite) TestItReportsBalanceInInspect() {
func (s *HoneypotSuite) checkBalance(expected int64, payload []byte) {
balance := new(big.Int).SetBytes(payload)
s.Zerof(balance.Cmp(big.NewInt(expected)), "expected %v; got %v", expected, balance)
}
}
4 changes: 2 additions & 2 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (

func main() {
examples := map[string]rollmelette.Application{
"echo": &echoapp.EchoApplication{},
"error": &errorapp.ErrorApplication{},
"echo": &echoapp.EchoApplication{},
"error": &errorapp.ErrorApplication{},
"honeypot": &honeypotapp.HoneypotApplication{
Owner: common.HexToAddress("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"),
},
Expand Down
2 changes: 1 addition & 1 deletion rollmelette.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type EnvInspector interface {

// AppAddress returns the application address sent by the address relay contract.
// If the contract didn't send the address yet, the function returns false.
AppAddress() (common.Address)
AppAddress() common.Address

// EtherAddresses returns the list of addresses that have Ether.
EtherAddresses() []common.Address
Expand Down

0 comments on commit d5193ad

Please sign in to comment.