@@ -88,7 +88,7 @@ def sign_authorization(
8888 nonce : Optional [int ] = None ,
8989 ) -> Optional [MessageSignature ]:
9090 if chain_id is None :
91- chain_id = self .provider .chain_id
91+ chain_id = self .chain_manager .chain_id
9292
9393 signed_authorization = EthAccount .sign_authorization (
9494 dict (
@@ -172,7 +172,7 @@ def set_delegate(self, contract: Union[BaseAddress, AddressType, str], **txn_kwa
172172 sig = self .sign_authorization (contract_address , nonce = self .nonce + 1 )
173173 auth = Authorization .from_signature (
174174 address = contract_address ,
175- chain_id = self .provider .chain_id ,
175+ chain_id = self .chain_manager .chain_id ,
176176 # NOTE: `tx` uses `self.nonce`
177177 nonce = self .nonce + 1 ,
178178 signature = sig ,
@@ -190,7 +190,7 @@ def set_delegate(self, contract: Union[BaseAddress, AddressType, str], **txn_kwa
190190 def remove_delegate (self , ** txn_kwargs ):
191191 sig = self .sign_authorization (ZERO_ADDRESS , nonce = self .nonce + 1 )
192192 auth = Authorization .from_signature (
193- chain_id = self .provider .chain_id ,
193+ chain_id = self .chain_manager .chain_id ,
194194 address = ZERO_ADDRESS ,
195195 # NOTE: `tx` uses `self.nonce`
196196 nonce = self .nonce + 1 ,
0 commit comments