Merge pull request #1296 from nspcc-dev/smartcontract/examples

examples: update examples
This commit is contained in:
Roman Khimov 2020-08-11 19:09:13 +03:00 committed by GitHub
commit c3f7a419a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 248 additions and 275 deletions

View file

@ -127,7 +127,7 @@ func unexportedMethod() int { return 1 }
}
t.Run("convert to Manifest", func(t *testing.T) {
actual, err := d.ConvertToManifest(smartcontract.HasStorage)
actual, err := d.ConvertToManifest(smartcontract.HasStorage, nil)
require.NoError(t, err)
// note: offsets are hard to predict, so we just take them from the output
expected := &manifest.Manifest{