You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(awaitEthereumVirtualMachine("https://polygon.llamarpc.com").expect().query({privateKey: flag(process.env?.["POLYGON_PRIVATE_KEY"]).expect("A private key is required."),to: "0xb33EaAd8d922B1083446DC23f610c2567fB5180f",signature: EthereumVirtualMachine.SignatureBuilder().name("implementation").external().view().returns("address").build().expect()asEthereumVirtualMachine.NonAmbientSignature})).expect("Failed to query smart contract.").parse((response): response is string=>{returntypeofresponse==="string";}).toResult("ERR_UNRECOGNIZED_TYPE").map(response=>{console.log("RESPONSE_RECEIVED",response);return;}).expect("A response was required but was either not received or was of an unexpected type.")
Client Side
(await(await(awaitWallet()).expect("Failed to the initialize wallet.").use(0n)).expect("Failed to pick the address.").query({to: "0xb33EaAd8d922B1083446DC23f610c2567fB5180f",signature: Wallet.SignatureBuilder().name("implementation").external().view().returns("address").build().expect()asWallet.NonAmbientSignature})).expect().parse((response): response is unknown=>{returntrue;}).toResult(undefined).map(response=>{console.log("RESPONSE_RECEIVED",response);return;}).expect("A response was required but not received.");