Skip to content

Commit

Permalink
Merge pull request #42 from libotony/master
Browse files Browse the repository at this point in the history
fix(abi): remove tuple from canonical name
  • Loading branch information
qianbin authored Dec 22, 2021
2 parents c0da887 + 077b592 commit cfc5adf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thor-devkit",
"version": "2.0.2",
"version": "2.0.3",
"description": "Typescript library to aid DApp development on VeChain Thor",
"main": "dist/index.js",
"module": "esm/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const coder = new Coder()
function formatSignature(fragment: any) {
try {
return _formatSignature(fragment)
.replace(/\(tuple\(/g, '((')
.replace(/\,tuple\(/g, ',(')
} catch (err) {
if (err.reason) {
throw new Error(err.reason)
Expand Down

0 comments on commit cfc5adf

Please sign in to comment.