mirror of https://github.com/nucypher/nucypher.git
Merge pull request #3588 from cygnusv/incompatible
Prepare breaking changes to post transcriptv7.5.x
commit
a216e14989
|
@ -0,0 +1 @@
|
|||
Introduce necessary changes to adapt agents methods to breaking changes in Coordinator contract. Previous methods are now deprecated from the API.
|
|
@ -749,7 +749,7 @@ class CoordinatorAgent(EthereumContractAgent):
|
|||
|
||||
@contract_api(CONTRACT_CALL)
|
||||
def is_provider_public_key_set(self, staking_provider: ChecksumAddress) -> bool:
|
||||
result = self.contract.functions.isProviderPublicKeySet(staking_provider).call()
|
||||
result = self.contract.functions.isProviderKeySet(staking_provider).call()
|
||||
return result
|
||||
|
||||
@contract_api(TRANSACTION)
|
||||
|
@ -790,7 +790,8 @@ class CoordinatorAgent(EthereumContractAgent):
|
|||
transacting_power: TransactingPower,
|
||||
async_tx_hooks: BlockchainInterface.AsyncTxHooks,
|
||||
) -> AsyncTx:
|
||||
contract_function: ContractFunction = self.contract.functions.postTranscript(
|
||||
# See sprints/#145
|
||||
contract_function: ContractFunction = self.contract.functions.publishTranscript(
|
||||
ritualId=ritual_id, transcript=bytes(transcript)
|
||||
)
|
||||
async_tx = self.blockchain.send_async_transaction(
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue