Expose the hash field from contract wasm (#3267)

This commit is contained in:
Jaco Greeff
2021-03-05 13:25:00 +01:00
committed by GitHub
parent 9295349886
commit 108b49ea03
4 changed files with 28 additions and 2 deletions
@@ -126,7 +126,10 @@ export default {
license: 'Option<Text>'
},
ContractProjectSource: {
hash: '[u8; 32]',
_alias: {
wasmHash: 'hash'
},
wasmHash: '[u8; 32]',
language: 'Text',
compiler: 'Text',
wasm: 'Raw'
@@ -136,7 +136,7 @@ export interface ContractProjectContract extends Struct {
/** @name ContractProjectSource */
export interface ContractProjectSource extends Struct {
readonly hash: U8aFixed;
readonly wasmHash: U8aFixed;
readonly language: Text;
readonly compiler: Text;
readonly wasm: Raw;