Skip to content

Commit

Permalink
Fix nested mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed May 23, 2023
1 parent 29550eb commit c4bc35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "everscale-inpage-provider",
"version": "0.3.60",
"version": "0.3.61",
"description": "Web3-like interface to the Everscale blockchain",
"repository": "https://github.com/broxus/everscale-inpage-provider",
"main": "dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ function parseTokenValue(param: AbiParam, token: RawTokenValue): TokenValue {
} else {
type TokenValueMap<Addr> = (readonly [TokenValue<Addr>, TokenValue<Addr>])[];

let [keyType, valueType] = param.type.split(',');
keyType = keyType.slice(4);
valueType = valueType.slice(0, -1);
const valueTypeIndex = param.type.indexOf(',');
const keyType = param.type.slice(4, valueTypeIndex);
const valueType = param.type.slice(valueTypeIndex + 1, -1);

const result: TokenValueMap<Address> = [];
for (const [key, value] of token as unknown as TokenValueMap<string>) {
Expand Down

0 comments on commit c4bc35d

Please sign in to comment.