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

Fix decoding actions #346

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 9 additions & 6 deletions src/pages/ProposalItem.vue
Expand Up @@ -328,15 +328,18 @@ export default defineComponent({

if (setAbiCache.hasOwnProperty(contract)) {
data = deserializeActionDataFromAbi(action, setAbiCache[contract]) as {
code: string
code: string,
abi: string,
account: string
};
} else {
data = await api.deserializeActionData(action) as {
code: string,
abi: string,
account: string
};
}

data = await api.deserializeActionData(action) as {
code: string,
abi: string,
account: string
};

if (contract === 'eosio' && action.name.toString() === 'setcode') {
data.code = `Binary data with SHA <${getShaForCode(data.code)}>`
Expand Down