Migration to 11.0.0
Changes to decodeEvents method
decodeEvents methodcInstance.methods.emitEvents.decodeEvents(log);cInstance.decodeEvents(log);// events emitted by contract calls are automatically decoded
const tx = await contractInstance.methods.emitEvents(1337, 'this message is not indexed');
console.log(tx.decodedEvents);
/*
[
{
address: 'ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh',
data: 'cb_dGhpcyBtZXNzYWdlIGlzIG5vdCBpbmRleGVkdWmUpw==',
topics: [
'101640830366340000167918459210098337687948756568954742276612796897811614700269',
'39519965516565108473327470053407124751867067078530473195651550649472681599133'
],
name: 'AnotherEvent',
decoded: [
'fUq2NesPXcYZ1CcqBcGC3StpdnQw3iVxMA3YSeCNAwfN4myQk',
'this message is not indexed'
]
},
{
address: 'ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh',
data: 'cb_Xfbg4g==',
topics: [
'59505622142252318624300825714684802559980671551955787864303522023309554554980',
1337
],
name: 'FirstEvent',
decoded: [ '1337' ]
}
]
*/Transaction poll method now checks if Tx is in the node pool (690db5b)
poll method now checks if Tx is in the node pool (690db5b)The default polling interval of 5000 is replaced by a method which calculates the default interval using expected mine rate and micro block cycle (d9c6cf9)
5000 is replaced by a method which calculates the default interval using expected mine rate and micro block cycle (d9c6cf9)Following contract instance methods are dropped(#1368)
The default gas of 25000 limit has been dropped. Instead, SDK attempts to estimate the gas using dry-run feature (#1367)
gas of 25000 limit has been dropped. Instead, SDK attempts to estimate the gas using dry-run feature (#1367)Removed Wrappers around CompilerApi (#1363)
CompilerApi (#1363)Native build of claim tx now accepts unencoded name instead of encoded name (eea92be)
name instead of encoded name (eea92be)Renamed hd-wallet methods (f6243ad)
hd-wallet methods (f6243ad)Last updated
Was this helpful?