Environment
Node: 16.15.1
defender-relay-client: 1.27.0
ethers: 5.6.9
Details
Hi,
I'm currently experiencing an issue with defender-relay-client
ethers signer that prevents any evm calls. It works fine with the standard Relayer
class, but the ethers signer just returns undefined on any method.
Code to reproduce
const {
DefenderRelayProvider,
DefenderRelaySigner,
} = require("defender-relay-client/lib/ethers");
const { Relayer } = require("defender-relay-client");
const { Contract } = require("ethers");
const credentials = {
apiKey: "xxx",
apiSecret: "xxx",
};
function getOzRelayerSigner() {
const provider = new DefenderRelayProvider(credentials);
const signer = new DefenderRelaySigner(credentials, provider, {
speed: "fast",
});
return signer;
}
async function main() {
const re = new Relayer(credentials);
console.log(await re.getRelayer()); // works fine
const relayer = getOzRelayerSigner();
console.log(await relayer.getAddress()); // returns undefined
console.log(await relayer.getTransactionCount()); // invalid bignumber value
}
main();