Skip to content

Commit

Permalink
new example
Browse files Browse the repository at this point in the history
  • Loading branch information
EWCunha committed Jun 12, 2024
1 parent b3e65f9 commit c2e1821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ func ExampleGetSigTypes() {
}

func ExampleSplitParams() {
typesStr := "(address, uint256, bytes)[], uint256, string, bool"
typesStr := "(address, uint256, bytes)[], uint256, string, bool, address"
splittedTypes := abi.SplitParams(typesStr)

fmt.Println(splittedTypes)

// Output: [(address, uint256, bytes)[] uint256 string bool]
// Output: [(address, uint256, bytes)[] uint256 string bool address]
}

0 comments on commit c2e1821

Please sign in to comment.