Comments (3)
cleos
leap v3.1.x
works. cleos
version: v2.1.0
is not supported, but cleos
leap
main
branch has a similar issue as cleos
version: v2.1.0
as it modifies the JSON in a similar way as v2.1.0
.
from leap.
The eosio.msig
contract ABI expects the transaction "data"
as a hex string.
"structs": [{
"name": "action",
"base": "",
"fields": [{
"name": "account",
"type": "name"
},{
"name": "name",
"type": "name"
},{
"name": "authorization",
"type": "permission_level[]"
},{
"name": "data",
"type": "bytes"
}
]
}
cleos
leap v3.1.x
produces a transfer.json in the correct format.
{
"expiration": "2022-11-11T10:24:24",
"ref_block_num": 41363,
"ref_block_prefix": 937202845,
"max_net_usage_words": 0,
"max_cpu_usage_ms": 0,
"delay_sec": 0,
"context_free_actions": [],
"actions": [{
"account": "eosio.token",
"name": "transfer",
"authorization": [{
"actor": "eosio",
"permission": "active"
}
],
"data": "0000000000ea305500408c7a02ea3055102700000000000004454f53000000000f70726f706f7365206173204d534947"
}
],
"transaction_extensions": [],
"signatures": [],
"context_free_data": []
}
cleos
leap
main
branch expands the "data"
section providing an unexpected "data"
section.
{
"expiration": "2022-11-11T09:57:49",
"ref_block_num": 38171,
"ref_block_prefix": 3147693954,
"max_net_usage_words": 0,
"max_cpu_usage_ms": 0,
"delay_sec": 0,
"context_free_actions": [],
"actions": [{
"account": "eosio.token",
"name": "transfer",
"authorization": [{
"actor": "eosio",
"permission": "active"
}
],
"data": {
"from": "eosio",
"to": "eosio.null",
"quantity": "1.0000 EOS",
"memo": "propose as MSIG"
},
"hex_data": "0000000000ea305500408c7a02ea3055102700000000000004454f53000000000f70726f706f7365206173204d534947"
}
],
"transaction_extensions": [],
"signatures": [],
"context_free_data": []
}
Removing the "data"
section is not the correct approach as that will generate an empty action which will fail to execute.
from leap.
The work-around is to remove the "data"
section and rename "hex_data"
to "data"
.
If using cleos
v2.1.x
, also will need to add "transaction_extensions": [],
to the generated transaction JSON.
from leap.
Related Issues (20)
- Ubsan NP test cancelled in the middle of running HOT 1
- IF: Test Failure: nodeos_startup_catchup_if_lr_test HOT 2
- IF: Use actual active_finalizer_policy_generation in finality_data
- IF: Test Failure: auto_bp_peering_if_test HOT 3
- Test Failure: eosio_system_unit_test_eos-vm-oc (Timeout) HOT 2
- IF: Provide finality_data in SHiP for Transition Savanna Blocks
- IF: Test Failure: nodeos_retry_transaction_if_lr_test
- Optimize block header validation
- IF: add get_row_by_id to libtester
- IF: workflows fail because of newly added tests in `hotstuff_integration` branch HOT 1
- IF: Move perf tests to benchmark HOT 1
- mapped_private mode improvement: when available memory is low free up memory to avoid crash HOT 1
- Optimize tests by switching the majority of tests to mapped_private
- Incorrect production scheduling after error: "Not producing block because "defproducerd" signed a block at the next block time or later" HOT 3
- Options needed for truncating ship data and block logs when starting from snapshot
- /v1/db_size/get formatting HOT 2
- Remove canonical signature check
- Typo (glock -> block) in description of get_block_header_state in the chain API plugin yaml HOT 1
- hardcoded "eosio" in account names
- test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leap.