Skip to content

Commit f6a9156

Browse files
committed
add test-write-state command test
1 parent 60ea573 commit f6a9156

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/cligen/cligen_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (ts *CligenTestSuite) TestCLI() {
5151
return
5252
}
5353

54-
caller := ts.Account(0)
54+
caller := ts.Account(1)
5555

5656
for _, tc := range []struct{
5757
suc bool
@@ -61,6 +61,8 @@ func (ts *CligenTestSuite) TestCLI() {
6161
{ true, []string{"help"}, `.*$`},
6262
{ true, []string{"test-get-sender"}, caller.Hex()+`\n$`},
6363
{ true, []string{"test-get-contract-address"}, c.Hex()+`\n$`},
64+
{ true, []string{"test-write-state", "--key", "a2V5", "--value", "dmFsdWU="}, `$`},
65+
{ true, []string{"test-read-state", "--key", "a2V5"}, `dmFsdWU=\n$`},
6466
} {
6567
var rootCmd = &cobra.Command{
6668
Use: "test",

0 commit comments

Comments
 (0)