Skip to content

Commit 30dc3e4

Browse files
authored
Merge pull request #2064 from oasisprotocol/lw/longer-subcall-method
Make subcall method name longer
2 parents 5045f58 + 2425af0 commit 30dc3e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.changelog/2064.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make subcall method name longer

src/oasis-nexus/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ function transformRuntimeTransactionList(
16431643
[{ type: 'string' }, { type: 'bytes' }],
16441644
base64ToHex(tx.body.data) as `0x${string}`,
16451645
)
1646-
const shortMethodName = methodName.split('.').at(-1)
1646+
const shortMethodName = methodName.replace('consensus.', '')
16471647
return { shortMethodName, methodName, cborHexArgs }
16481648
} catch (e) {
16491649
console.error('Failed to parse subcall data (might be malformed)', e, tx)

0 commit comments

Comments
 (0)