Skip to content

Commit

Permalink
Fix warp cheat code
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Nov 9, 2024
1 parent c2a6128 commit 7187cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/aztec.js/src/utils/cheat_codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class EthCheatCodes {
* @param timestamp - The timestamp to set the next block to
*/
public async warp(timestamp: number | bigint): Promise<void> {
const res = await this.rpcCall('evm_setNextBlockTimestamp', [timestamp]);
const res = await this.rpcCall('evm_setNextBlockTimestamp', [Number(timestamp)]);
if (res.error) {
throw new Error(`Error warping: ${res.error.message}`);
}
Expand Down

0 comments on commit 7187cb5

Please sign in to comment.