Change the signature of auth scripts to accept `FEE_ARGS` in addition to `AUTH_ARGS`
オープン
fees
kernels
- 主要言語
- Rust
- スター
- 132
- フォーク
- 167
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 110
説明
I think a cleaner approach would be to change the signature to accept "fee args" as a second word - i.g.:
```
pub type FeeArgs = struct { faucet_id: AccountId, rate: ConversionRate }
pub type ConversionRate = struct { lo: felt, hi: felt }
#! Inputs: [AUTH_ARGS, FEE_ARGS, pad(8)]
#! Outputs: [pad(16)]
#!
#! Invocation: call
@auth_script
pub proc auth_tx(auth_args: word, fee_args: FeeArgs)
...
end
```
This is a bit more work though - so, probably best to do in a follow-up.
_Originally posted by @bobbinth in https://github.com/0xMiden/protocol/pull/3298#discussion_r3583044185_
コントリビューションガイド
評価
この issue はまだ評価されていません。