-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Remove null property from wasm execute msg (#120)
* remove null property from wasm msg to prevent signature verification failed * put undefined to instantiate.admin when admin is empty string * update version to v2.0.2
- Loading branch information
yys
authored
Aug 20, 2021
1 parent
e75356f
commit 8998d13
Showing
7 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { removeNull } from './json'; | ||
|
||
describe('removeNull', () => { | ||
it('remove null ', () => { | ||
expect( | ||
removeNull({ | ||
a: 'abc', | ||
b: { | ||
a: null, | ||
b: 123, | ||
}, | ||
c: null, | ||
d: [123], | ||
e: { | ||
a: { | ||
a: null, | ||
b: 'abc', | ||
}, | ||
b: 123, | ||
}, | ||
}) | ||
).toEqual({ | ||
a: 'abc', | ||
b: { | ||
b: 123, | ||
}, | ||
d: [123], | ||
e: { | ||
a: { | ||
b: 'abc', | ||
}, | ||
b: 123, | ||
}, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters