stellar / soroban-examples

Example Soroban Contracts
Apache License 2.0
65 stars 68 forks source link

Simple authorization example #64

Closed sisuresh closed 2 years ago

sisuresh commented 2 years ago

Resolves https://github.com/stellar/soroban-examples/issues/58, and does both https://github.com/stellar/stellar-protocol/issues/1287 and https://github.com/stellar/soroban-token-contract/issues/81 for this contract.

The nonce change is a little awkward because KeyedAuthorization::Contract doesn't use one. The nonce passed into the contract function in that case can be anything.