Skip to content

Commit

Permalink
- renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed May 20, 2024
1 parent 1786b4f commit cb1baf0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions node/chainSimulator/chainSimulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func TestChainSimulator_SetEntireState(t *testing.T) {
CodeMetadata: "BQY=",
Owner: "erd1ss6u80ruas2phpmr82r42xnkd6rxy40g9jl69frppl4qez9w2jpsqj8x97",
DeveloperRewards: "5401004999998",
Keys: map[string]string{
Pairs: map[string]string{
"73756d": "0a",
},
}
Expand Down Expand Up @@ -328,7 +328,7 @@ func TestChainSimulator_SetEntireStateWithRemoval(t *testing.T) {
CodeMetadata: "BQY=",
Owner: "erd1ss6u80ruas2phpmr82r42xnkd6rxy40g9jl69frppl4qez9w2jpsqj8x97",
DeveloperRewards: "5401004999998",
Keys: map[string]string{
Pairs: map[string]string{
"73756d": "0a",
},
}
Expand Down
2 changes: 1 addition & 1 deletion node/chainSimulator/components/testOnlyProcessingNode.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func (node *testOnlyProcessingNode) SetStateForAddress(address []byte, addressSt
return err
}

err = setKeyValueMap(userAccount, addressState.Keys)
err = setKeyValueMap(userAccount, addressState.Pairs)
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func TestTestOnlyProcessingNode_SetStateForAddress(t *testing.T) {
Address: "erd1qtc600lryvytxuy4h7vn7xmsy5tw6vuw3tskr75cwnmv4mnyjgsq6e5zgj",
Nonce: &nonce,
Balance: "1000000000000000000",
Keys: map[string]string{
Pairs: map[string]string{
"01": "02",
},
}
Expand Down
2 changes: 1 addition & 1 deletion node/chainSimulator/dtos/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ type AddressState struct {
CodeHash string `json:"codeHash,omitempty"`
DeveloperRewards string `json:"developerReward,omitempty"`
Owner string `json:"ownerAddress,omitempty"`
Keys map[string]string `json:"keys,omitempty"`
Pairs map[string]string `json:"pairs,omitempty"`
}

0 comments on commit cb1baf0

Please sign in to comment.