Skip to content

Commit

Permalink
ref(gas-limit): set DEFAULT_GAS_LIMIT to 5_000_000_000
Browse files Browse the repository at this point in the history
  • Loading branch information
FranklinWaller committed Sep 12, 2024
1 parent 8adb00f commit 8e05604
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions libs/dev-tools/src/lib/services/dr/post-dr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { buildSigningConfig } from "@dev-tools/services/config";
import { Signer } from "../signer";
import { postDataRequest } from "./post-data-request";

const signingConfig = buildSigningConfig({
// rpc: 'http://127.0.0.1:26657/',
rpc: "https://rpc.devnet.seda.xyz",
// contract: 'seda1zrvu7dar9rj3xqgnwrses3340kmdsj7fccaxyeq0g9rvnxmngp5sem8gst',
contract: "seda1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqtz9sjw",
});
const signer = await Signer.fromPartial(signingConfig);

let x = 1;

while (x > 0) {
x--;
console.log("posting..");
const result = await postDataRequest(
signer,
{
consensusOptions: {
method: "none",
},
replicationFactor: 1,
drBinaryId:
"5f3b31bff28c64a143119ee6389d62e38767672daace9c36db54fa2d18e9f391",
drInputs: new TextEncoder().encode("doge-usdt"),
tallyInputs: new TextEncoder().encode(""),
gasLimit: 9_007_199_254_740_991,
memo: Buffer.from(`${new Date().toISOString()}2222`),
},
{},
);

console.log("[DEBUG]: result ::: ", result);
}

0 comments on commit 8e05604

Please sign in to comment.