Skip to content

Commit

Permalink
bug: trim first 32 bytes of proxy args
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Jan 17, 2024
1 parent 5ff9090 commit 61b32c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/cluster_proxy/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn process_transfer() -> Result<(), Error> {
return Err(Error::SporeActionMismatch);
};
if input_data.as_slice() != transfer.cluster_id().as_slice()
|| load_type_args(0, GroupInput).as_ref() != transfer.proxy_id().as_slice()
|| load_type_args(0, GroupInput)[..32] != transfer.proxy_id().as_slice()
{
return Err(Error::SporeActionFieldMismatch);
}
Expand Down

0 comments on commit 61b32c7

Please sign in to comment.