sCrypt-Inc / scrypt-ord

sCrypt 1sat ordinal library
https://docs.scrypt.io/tokens/
19 stars 5 forks source link

`transfer` can only use the default address of the signer as ordinal address. #56

Closed freedomhero closed 8 months ago

freedomhero commented 9 months ago
transfer(
        senders: Array<BSV20V2P2PKH>,
        signer: Signer,
        receivers: Array<FTReceiver>
    ) {
  const ordPubKey = await signer.getDefaultPubKey()
}

That assumes that the sender tokens are all from the same address of the signer. It's not always true. It suppose to pass in pubkeys to unlock those sender tokens.