diff --git a/contract/AElf.Contracts.CrossChain/CrossChainContract.Hotfix.cs b/contract/AElf.Contracts.CrossChain/CrossChainContract.Hotfix.cs new file mode 100644 index 0000000000..7f7fde15eb --- /dev/null +++ b/contract/AElf.Contracts.CrossChain/CrossChainContract.Hotfix.cs @@ -0,0 +1,13 @@ +using Google.Protobuf.WellKnownTypes; + +namespace AElf.Contracts.CrossChain; + +public partial class CrossChainContract +{ + public override Empty SetParentChainHeight(Int64Value input) + { + AssertAddressIsCurrentMiner(Context.Sender); + State.CurrentParentChainHeight.Value = input.Value; + return new Empty(); + } +} \ No newline at end of file diff --git a/protobuf/cross_chain_contract.proto b/protobuf/cross_chain_contract.proto index ef0d9b55a6..8c6b4b8be7 100644 --- a/protobuf/cross_chain_contract.proto +++ b/protobuf/cross_chain_contract.proto @@ -65,6 +65,9 @@ service CrossChainContract { option (aelf.is_view) = true; } + rpc SetParentChainHeight (google.protobuf.Int64Value) returns (google.protobuf.Empty) { + } + // Get the chain id of parent chain. rpc GetParentChainId (google.protobuf.Empty) returns (google.protobuf.Int32Value) { option (aelf.is_view) = true;