sputnik-dao-contract: the account ID is invalid
In the step 6 in the main README.
near call $CONTRACT_ID create "{\"name\": \"genesisDAO\", \"args\": \"$ARGS\"}" --accountId $CONTRACT_ID --amount 10 --gas 150000000000000
ExecutionError: Smart contract panicked: panicked at 'Failed to deserialize input from JSON.: Error("the account ID is invalid", line: 1, column: 20)', sputnikdao-factory2/src/lib.rs:49:1
Failure [marseille.testnet]: Error: {“index”:0,“kind”:{“ExecutionError”:“Smart contract panicked: panicked at ‘Failed to deserialize input from JSON.: Error("the account ID is invalid", line: 1, column: 20)’, sputnikdao-factory2/src/lib.rs:49:1”}}
ServerTransactionError: {“index”:0,“kind”:{“ExecutionError”:“Smart contract panicked: panicked at ‘Failed to deserialize input from JSON.: Error("the account ID is invalid", line: 1, column: 20)’, sputnikdao-factory2/src/lib.rs:49:1”}}
at Object.parseResultError (/usr/local/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/rpc_errors.js:31:29)
at Account.signAndSendTransactionV2 (/usr/local/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:160:36)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async scheduleFunctionCall (/usr/local/lib/node_modules/near-cli/commands/call.js:57:38)
at async Object.handler (/usr/local/lib/node_modules/near-cli/utils/exit-on-error.js:52:9) {
type: ‘FunctionCallError’,
context: undefined,
index: 0,
kind: {
ExecutionError: Smart contract panicked: panicked at 'Failed to deserialize input from JSON.: Error("the account ID is invalid", line: 1, column: 20)', sputnikdao-factory2/src/lib.rs:49:1
},
transaction_outcome: {
block_hash: ‘A2DNdTZgCbHX1GowfeqDjZJpMeftGjsWuknTGs8QtKj4’,
id: ‘5PTrtmngBUzkecFP6cmAYjeYuFyVmVzkcWJKhKPQ1vHu’,
outcome: {
executor_id: ‘marseille.testnet’,
gas_burnt: 2428459860094,
logs: [],
metadata: [Object],
receipt_ids: [Array],
status: [Object],
tokens_burnt: ‘242845986009400000000’
},
proof: [ [Object], [Object], [Object] ]
}
}
I put
export COUNCIL='["marseille.testnet", "marseille1.testnet"]'
And
export ARGS=`echo '{"config": {"name": "genesisDAO", "purpose": "It is THE Genesis DAO", "metadata": "Metadatas"}, "policy": '$COUNCIL'}' | base64`
I don’t understand because the two address : “marseille.testnet”, “marseille1.testnet” is valid, and it’s the same error if I put as in example council-member.testnet, marseille.testnet
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21
Waaaaaaa !!! It’s working !!!
yes try this
export ARGS=`echo '{"config": {"name": "genesisdao", "purpose": "it is the genesis dao", "metadata": ""}, "policy": ["marseille.testnet", "marseille1.testnet","anank1.testnet","anank2.testnet"]}' | base64`