Skip to content

Commit 1310eb8

Browse files
Add pointer
1 parent aa856c9 commit 1310eb8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

blockchain/test_blockchain.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,26 @@ func NewTestBlockchain(t *testing.T, protocolVersion string) testBlockchain {
8181
return chain
8282
}
8383

84-
func (b testBlockchain) AccountAddress() felt.Felt {
84+
// Use pointers because of the "hugeParam" linter
85+
func (b *testBlockchain) AccountAddress() felt.Felt {
8586
return b.account.accounts[0].address
8687
}
8788

88-
func (b testBlockchain) DeployerAddress() felt.Felt {
89+
func (b *testBlockchain) DeployerAddress() felt.Felt {
8990
return b.deployer.accounts[0].address
9091
}
9192

92-
func (b testBlockchain) AccountClassHash() felt.Felt {
93+
func (b *testBlockchain) AccountClassHash() felt.Felt {
9394
return b.account.hash
9495
}
9596

96-
func (b testBlockchain) ClassHashByAddress(address felt.Felt) felt.Felt {
97+
func (b *testBlockchain) ClassHashByAddress(address felt.Felt) felt.Felt {
9798
classHash, ok := b.addr2classHash[address]
9899
require.True(b.t, ok)
99100
return classHash
100101
}
101102

102-
func (b testBlockchain) NewRoot(t *testing.T,
103+
func (b *testBlockchain) NewRoot(t *testing.T,
103104
blockNumber uint64, stateUpdate *core.StateUpdate, newClasses map[felt.Felt]core.Class,
104105
) *felt.Felt {
105106
var root *felt.Felt

0 commit comments

Comments
 (0)