fix(interface-types) arg.get's index is of type u32.

This commit is contained in:
Ivan Enderlin
2020-02-26 15:42:29 +01:00
parent 766312fd90
commit 09498ee286
4 changed files with 10 additions and 5 deletions

View File

@ -252,7 +252,7 @@ where
match self {
Instruction::ArgumentGet { index } => {
0x00_u8.to_bytes(writer)?;
index.to_bytes(writer)?;
(*index as u64).to_bytes(writer)?;
}
Instruction::Call { function_index } => {