cli: add test for testinvokefunction
Check that contract can be properly deployed and invoked.
This commit is contained in:
parent
c4a8770215
commit
945e9410e4
6 changed files with 162 additions and 1 deletions
|
@ -185,11 +185,14 @@ func (e *executor) run(args ...string) error {
|
|||
return e.CLI.Run(args)
|
||||
}
|
||||
|
||||
func (e *executor) checkTxPersisted(t *testing.T) (*transaction.Transaction, uint32) {
|
||||
func (e *executor) checkTxPersisted(t *testing.T, prefix ...string) (*transaction.Transaction, uint32) {
|
||||
line, err := e.Out.ReadString('\n')
|
||||
require.NoError(t, err)
|
||||
|
||||
line = strings.TrimSpace(line)
|
||||
if len(prefix) > 0 {
|
||||
line = strings.TrimPrefix(line, prefix[0])
|
||||
}
|
||||
h, err := util.Uint256DecodeStringLE(line)
|
||||
require.NoError(t, err, "can't decode tx hash: %s", line)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue