mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Merge pull request #1320 from disperze/main
Fix parse ContractCodeHistory msg
This commit is contained in:
commit
46ae68e308
@ -6,6 +6,12 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- @cosmjs/cosmwasm-stargate: Fix `ContractCodeHistory` decoding when msg contains non-printable ASCII ([#1320]).
|
||||||
|
|
||||||
|
[#1320]: https://github.com/cosmos/cosmjs/pull/1320
|
||||||
|
|
||||||
## [0.29.3] - 2022-10-25
|
## [0.29.3] - 2022-10-25
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/naming-convention */
|
/* eslint-disable @typescript-eslint/naming-convention */
|
||||||
import { fromAscii, toHex } from "@cosmjs/encoding";
|
import { fromUtf8, toHex } from "@cosmjs/encoding";
|
||||||
import { Uint53 } from "@cosmjs/math";
|
import { Uint53 } from "@cosmjs/math";
|
||||||
import {
|
import {
|
||||||
Account,
|
Account,
|
||||||
@ -415,7 +415,7 @@ export class CosmWasmClient {
|
|||||||
return {
|
return {
|
||||||
operation: operations[entry.operation],
|
operation: operations[entry.operation],
|
||||||
codeId: entry.codeId.toNumber(),
|
codeId: entry.codeId.toNumber(),
|
||||||
msg: JSON.parse(fromAscii(entry.msg)),
|
msg: JSON.parse(fromUtf8(entry.msg)),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user