From a1fe1f02e7e0d8f19871f9a9dedbf3bd4cce3a4b Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Sun, 30 Sep 2018 01:58:02 -0300 Subject: [PATCH] prevent gas errors with low level call --- contracts/registry/UsernameRegistrar.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/registry/UsernameRegistrar.sol b/contracts/registry/UsernameRegistrar.sol index b48b038..ed32ed0 100644 --- a/contracts/registry/UsernameRegistrar.sol +++ b/contracts/registry/UsernameRegistrar.sol @@ -150,7 +150,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack { address newOwner = ensRegistry.owner(ensNode); //Low level call, case dropUsername not implemented or failing, proceed release. //Invert (!) to supress warning, return of this call have no use. - !newOwner.call( + !newOwner.call.gas(80000)( abi.encodeWithSignature( "dropUsername(bytes32)", _label