Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User fee increase for the MasternodeVote in decodeStateTransition #347

Merged
merged 11 commits into from
Dec 19, 2024
1 change: 1 addition & 0 deletions packages/api/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ const decodeStateTransition = async (client, base64) => {
decoded.documentTypeName = stateTransition.getContestedDocumentResourceVotePoll().documentTypeName
decoded.indexName = stateTransition.getContestedDocumentResourceVotePoll().indexName
decoded.choice = stateTransition.getContestedDocumentResourceVotePoll().choice
decoded.userFeeIncrease = stateTransition.getUserFeeIncrease()
decoded.raw = stateTransition.toBuffer().toString('hex')
decoded.proTxHash = stateTransition.getProTxHash().toString('hex')

Expand Down
3 changes: 2 additions & 1 deletion packages/api/test/unit/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ describe('Utils', () => {
indexName: 'parentNameAndLabel',
choice: 'TowardsIdentity(4VRAaVi8vq492FznoHKTsQd4odaXa7vDxdghpTSQBVSV)',
raw: '0800bc77a5a2cec455c79fb92fb683dbd87a2a92b663c9a46d0c50d11889b4aeb121126fac34e15653f82356cffd3d37c5cd84c1f634d4043340dbae781d93d6b87e000000e668c659af66aee1e72c186dde7b5b7e0a1d712a09c40d5721f622bf53c5315506646f6d61696e12706172656e744e616d65416e644c6162656c02120464617368120874657374303130300033daa5a3e330b61e5a4416ab224f0a45ef4e4cab1357b5f4a86fae9314717a561000411f6c69fa9201b57bb7e7c24b392de9056cce5a66bcf2154d57631419e9c68efa8e4d1ca11e81c35de31dd52321d0fbb25f6ff17f5ff69a9cf47fce54746ee72644',
proTxHash: 'bc77a5a2cec455c79fb92fb683dbd87a2a92b663c9a46d0c50d11889b4aeb121'
proTxHash: 'bc77a5a2cec455c79fb92fb683dbd87a2a92b663c9a46d0c50d11889b4aeb121',
userFeeIncrease: 0
})
})
})
Expand Down
Loading