Skip to content

Commit

Permalink
fix: generating structs with correct boolean types
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Aug 29, 2024
1 parent 6b74e4a commit 5da0ec0
Show file tree
Hide file tree
Showing 4 changed files with 793 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ci-test: node_modules

.PHONY: test_generate
test_generate: node_modules clean lib
node lib/cli.js generate eosio.token -u https://jungle4.greymass.com
node lib/cli.js generate eosio.token -u https://eos.greymass.com

.PHONY: update_mock_contracts
update_mock_contracts: node_modules clean lib
Expand Down
3 changes: 2 additions & 1 deletion src/commands/contract/structs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ export function findFieldTypeString(
}

function formatFieldString(typeString: string): string {
if (typeString === 'boolean') {
console.log({typeString})
if (typeString === 'boolean' || typeString === 'Bool') {
return 'bool'
}

Expand Down
Loading

0 comments on commit 5da0ec0

Please sign in to comment.