-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(gas-limit): set DEFAULT_GAS_LIMIT to 5_000_000_000
- Loading branch information
1 parent
8adb00f
commit 8e05604
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |