Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ImageCell.sol for consistent ABI output with json file #1567

Merged
merged 1 commit into from
Nov 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity >=0.8.0;

import "../libraries/CkbType.sol";

library ImageCellType {
library ImageCell {
struct BlockUpdate {
uint64 blockNumber;
CkbType.OutPoint[] txInputs;
Expand All @@ -20,10 +20,10 @@ library ImageCellType {
// **Notice**
// This file only defines the interface of image cell contract. The real
// implementation is in `core/executor/src/system_contract/image_cell`.
interface ImageCell {
interface ImageCellType {
function setState(bool allowRead) external;

function update(ImageCellType.BlockUpdate[] calldata blocks) external;
function update(ImageCell.BlockUpdate[] calldata blocks) external;

function rollback(ImageCellType.BlockRollBlack[] calldata blocks) external;
function rollback(ImageCell.BlockRollBlack[] calldata blocks) external;
}
Loading