Skip to content

Commit

Permalink
feat: doesn't cast from string to bytes inside onERC1155Received
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Apr 30, 2024
1 parent 4256e75 commit a31758d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assembly/contracts/token-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export function _updateWithAcceptanceCheck(
'onERC1155Received',
new Args()
.add(operator)
.add(stringToBytes(from))
.add(from)
.add(id)
.add(value)
.add(data),
Expand All @@ -270,7 +270,7 @@ export function _updateWithAcceptanceCheck(
'onERC1155BatchReceived',
new Args()
.add(operator)
.add(stringToBytes(from))
.add(from)
.add(ids)
.add(values)
.add(data),
Expand Down

0 comments on commit a31758d

Please sign in to comment.