Comments (4)
AFAIK there is no bytes64
type. For byte arrays larger than 32 bytes, just use :bytes
(dynamic sized byte array).
For your example:
raw_data = "00000000000000000000000097ab3d4f7f5051f127b0e9f8d10772125d94d65b0000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000407c278b7e4320528bdbf5c02db611282b431dbaec2509b1fbebe3de4be7442a4114f1c9970ffd0c589afa8ef6262692efd4edae5d77c87641f21f44b1d082c3480000000000000000000000000000000000000000000000000000000000000030b969678ef2cf458b49b8c568d95e63221efe0f30383a9b0c5eb683bf2e23d118664631ce992d81ec4b6127ec0a760f8600000000000000000000000000000000"
data_bytes = Base.decode16!(raw_data , case: :mixed)
[owner, rate, pub_key, bls_key] = TypeDecoder.decode_raw(data_bytes, [:address, {:uint, 256}, :bytes, :bytes])
from ex_abi.
It worked. Thank you very much!
from ex_abi.
ex_abi version is 0.6.4 or 0.7.0
from ex_abi.
great!
from ex_abi.
Related Issues (20)
- Problem when parsing tuples and bool HOT 5
- could not compile dependency :ex_keccak, "mix compile" failed HOT 2
- Support multidimensional tuple arrays HOT 2
- Encoding maps as structs HOT 3
- this is issue is comming when i compile the blockscout code in windows OS HOT 3
- Error when decoding array of uint256 HOT 6
- Error on decoding HOT 2
- Missing `stateMutability` on `ABI.FunctionSelector` struct
- Error processing empty data field in event HOT 1
- Error decoding struct HOT 2
- Invalid result when encoding payload for 0x V3 proxy.
- Issue decoding Seaport Zone getSeaportMetadata HOT 3
- non-standard packed mode: `encodePacked` HOT 4
- Incorrect method_id definition for events ABI HOT 2
- ABI.find_and_decode function doesn't validate input arguments HOT 3
- Type parsing error
- `ABI.parse_specification` ignores function objects without `outputs` field
- ABI.FunctionSelector.decode_type/1 doesn't recognize tuple type HOT 1
- Incorect output decoding when returned value matches the function signature.
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 ex_abi.