Skip to content

Commit

Permalink
Merge pull request #366 from rsodre/calldata-compile-abi
Browse files Browse the repository at this point in the history
fix: compile calldata using abi
  • Loading branch information
MartianGreed authored Jan 6, 2025
2 parents 284c285 + 3341a7a commit 091d951
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export const parseDojoCall = (

return {
contractAddress: contract.address,
calldata: CallData.compile(call.calldata),
calldata: new CallData(contract.abi).compile(
call.entrypoint,
call.calldata
),
entrypoint: call.entrypoint,
};
} else {
Expand Down

0 comments on commit 091d951

Please sign in to comment.