Fix parse contract msg

This commit is contained in:
Giancarlos Salas 2022-11-11 11:49:42 -06:00 committed by GitHub
parent 2c3b27eeb3
commit 82371597c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { fromAscii, toHex } from "@cosmjs/encoding";
import { fromUtf8, toHex } from "@cosmjs/encoding";
import { Uint53 } from "@cosmjs/math";
import {
Account,
@ -415,7 +415,7 @@ export class CosmWasmClient {
return {
operation: operations[entry.operation],
codeId: entry.codeId.toNumber(),
msg: JSON.parse(fromAscii(entry.msg)),
msg: JSON.parse(fromUtf8(entry.msg)),
};
});
}