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 payload type #371

Merged
merged 1 commit into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/devnet-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Make sure you really want to interact with Devnet and that it is running and ava
public async consumeMessageFromL2(
l2ContractAddress: string,
l1ContractAddress: string,
payload: number[]
payload: Numeric[]
) {
const body = {
l2_contract_address: l2ContractAddress,
Expand Down
4 changes: 2 additions & 2 deletions src/types/devnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ export interface Devnet {
* Sends a mock message from L2 to L1
* @param {string} l2ContractAddress - Address of the L2 contract.
* @param {string} l1ContractAddress - Address of the L1 contract.
* @param {Array<number>} payload - Payload to send to the L1 network.
* @param {Array<Numeric>} payload - Payload to send to the L1 network.
* @returns Message hash
*/
consumeMessageFromL2: (
l2ContractAddress: string,
l1ContractAddress: string,
payload: Array<number>
payload: Array<Numeric>
) => Promise<L2ToL1MockTxResponse>;

/**
Expand Down