Skip to content

Commit

Permalink
chore(lib/contracts): fix byte semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhalliday committed Oct 10, 2024
1 parent 2359a87 commit 9aee7d4
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion contracts/allocs/devnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/allocs/staging.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/admin.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/allocpredeploys.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/omnibridgel1.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/omnibridgenative.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/omnigaspump.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/omnigasstation.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/omniportal.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/pingpong.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/core/.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OmniBridgeNative_Test:test_pauseBridging() (gas: 44449)
OmniBridgeNative_Test:test_pauseWithdraws() (gas: 61348)
OmniBridgeNative_Test:test_stub() (gas: 143)
OmniBridgeNative_Test:test_withdraw() (gas: 279800)
OmniGasPump_Test:testFuzz_quote(uint32) (runs: 256, μ: 63919, ~: 63969)
OmniGasPump_Test:testFuzz_quote(uint32) (runs: 256, μ: 63922, ~: 63969)
OmniGasPump_Test:test_fillUp() (gas: 231427)
OmniGasPump_Test:test_pause() (gas: 62757)
OmniGasPump_Test:test_setMaxSwap() (gas: 34749)
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/src/interfaces/IOmniPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface IOmniPortal {
/**
* @notice Emitted when an XMsg is executed on its destination chain
* @param sourceChainId Source chain ID
* @param shardId Shard ID of the XStream (first byte is the confirmation level)
* @param shardId Shard ID of the XStream (last byte is the confirmation level)
* @param offset Offset the XMsg in the source -> dest XStream
* @param gasUsed Gas used in execution of the XMsg
* @param relayer Address of the relayer who submitted the XMsg
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/src/libraries/XTypes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ library XTypes {
* throughout Omni's cross-chain messaging protocol. Msg is used to construct and verify
* XSubmission merkle trees / proofs.
* @custom:field destChainId Chain ID of the destination chain
* @custom:field shardId Shard ID of the XStream (first byte is the confirmation level)
* @custom:field shardId Shard ID of the XStream (last byte is the confirmation level)
* @custom:field offset Monotonically incremented offset of Msg in source -> dest Stream
* @custom:field sender msg.sender of xcall on source chain
* @custom:field to Target address to call on destination chain
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/src/xchain/OmniPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ contract OmniPortal is
require(gasLimit >= xmsgMinGasLimit, "OmniPortal: gasLimit too low");
require(data.length <= xmsgMaxDataSize, "OmniPortal: data too large");

// conf level will always be first byte of shardId. for now, shardId is just conf level
// conf level will always be last byte of shardId. for now, shardId is just conf level
uint64 shardId = uint64(conf);
require(isSupportedShard[shardId], "OmniPortal: unsupported shard");

Expand Down

0 comments on commit 9aee7d4

Please sign in to comment.