This error is thrown when assertValidAddress is called, usually because a contract call expects the class to have a valid address attached.
assertValidAddress
ContractAddressRequiredError
try { target.assertValidAddress()} catch(e) { if(e instanceof ContractAddressRequiredError) {} Copy
try { target.assertValidAddress()} catch(e) { if(e instanceof ContractAddressRequiredError) {}
Creates an instance of ContractAddressRequiredError.
Static
Optional
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
This error is thrown when
assertValidAddress
is called, usually because a contract call expects the class to have a valid address attached.Export
ContractAddressRequiredError
Example