Open michele-franchi opened 6 months ago
You can also use calldata library
calldata = require('@aeternity/aepp-calldata')
c = new calldata.ContractEncoder()
// https://testnet.aeternity.io/v3/contracts/ct_HzBhnwxXg2zsPAmpX6ppoJNA5q1oojn8ZL2AsWozRxuBFERWD/code
c.decode(
'cb_+JZGA6ChqMLv4ude/7H99pvMlDnAZQsLIJfYj6/C+eGDo2o9NMC4abP+RNZEHwA3AQc3ABoGggABAz/+boPhzgA3AQcHFiQAggD+rjHQWQA3AQc3ABoGggABAz+xLwMRRNZEHxFpbml0EW6D4c5BbXVsdGlwbHlCeUZhY3RvchGuMdBZJXNldEZhY3RvcoIvAIU3LjQuMAD9z2HE',
).compilerVersion
// '7.4.0'
The compiler version could be automatically derived using aesophia cli, using
--compiled_by
. Example:aesophia_cli --compiled_by cb_