Skip to content

Commit

Permalink
fix: type definition for map abi (#1608)
Browse files Browse the repository at this point in the history
Signed-off-by: bestmike007 <[email protected]>
  • Loading branch information
bestmike007 authored Dec 17, 2023
1 parent 25b3994 commit 39a30f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions packages/transactions/src/contract-abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,8 @@ export interface ClarityAbiVariable {

export interface ClarityAbiMap {
name: string;
key: {
name: string;
type: ClarityAbiType;
}[];
value: {
name: string;
type: ClarityAbiType;
}[];
key: ClarityAbiType;
value: ClarityAbiType;
}

export interface ClarityAbiTypeFungibleToken {
Expand Down
4 changes: 2 additions & 2 deletions packages/transactions/tests/abi/kv-store-abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"maps": [
{
"name": "store",
"key": [{ "name": "key", "type": { "buffer": { "length": 3 } } }],
"value": [{ "name": "value", "type": { "buffer": { "length": 3 } } }]
"key": { "buffer": { "length": 3 } },
"value": { "buffer": { "length": 3 } }
}
],
"fungible_tokens": [],
Expand Down

1 comment on commit 39a30f2

@vercel
Copy link

@vercel vercel bot commented on 39a30f2 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.