Skip to content

Commit

Permalink
Fix Payload type (#371)
Browse files Browse the repository at this point in the history
* [skip testnet]
  • Loading branch information
Nathan-SL authored May 19, 2023
1 parent 6ad18dd commit d9a25c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit d9a25c0

Please sign in to comment.